//package com.thiswhyme.fsplus.sentinel.feign.instancefilter;
//
//import com.alibaba.csp.sentinel.slotchain.DefaultProcessorSlotChain;
//import com.alibaba.csp.sentinel.slotchain.ProcessorSlotChain;
//import com.alibaba.csp.sentinel.slotchain.SlotChainBuilder;
//import com.alibaba.csp.sentinel.slots.block.authority.AuthoritySlot;
//import com.alibaba.csp.sentinel.slots.block.flow.FlowSlot;
//import com.alibaba.csp.sentinel.slots.clusterbuilder.ClusterBuilderSlot;
//import com.alibaba.csp.sentinel.slots.logger.LogSlot;
//import com.alibaba.csp.sentinel.slots.nodeselector.NodeSelectorSlot;
//import com.alibaba.csp.sentinel.slots.statistic.StatisticSlot;
//import com.alibaba.csp.sentinel.slots.system.SystemSlot;
//
///**
// * @description: 自定义SlotChain
// * @author: thiswhyme
// * @date: 2021/4/29
// */
//public class CustomSlotChainBuilder implements SlotChainBuilder {
//
//    @Override
//    public ProcessorSlotChain build() {
//        BlockServerContext blockServerContext = SpringUtils.getBean(BlockServerContext.class);
//        ProcessorSlotChain chain = new DefaultProcessorSlotChain();
//        chain.addLast(new NodeSelectorSlot());
//        chain.addLast(new ClusterBuilderSlot());
//        chain.addLast(new LogSlot());
//        chain.addLast(new StatisticSlot());
//        chain.addLast(new AuthoritySlot());
//        chain.addLast(new SystemSlot());
//        chain.addLast(new FlowSlot());
//        chain.addLast(new CustomDegradeSlot(blockServerContext));
//        return chain;
//    }
//}
